/*
 *@Author: 李小龙
 *@Date: 2021-09-18 10:58:04
 *@Description: 匹配路径转数组'/a/b/c' => ['/a','/b','/c']
 */
export function regexp(str) {
    return str.match(/\/\w+/g);
}
/*
 *@Author: 李小龙
 *@Date: 2021-09-18 11:03:31
 *@Description: ['/a','/b','/c']=>['/a','/a/b','/a/b/c']ssss
 */
export function arrnb(list) {
    return list.map((item, index) => {
        return list.slice(0, index + 1).join('');
    })
}